import axios from 'axios';
function Http (url){
  return axios ({
    url:url
  })
}
var key = '33541ab8c69c9e89f032fc582c647cfe'
var adcode = 420100
function getLocation(){
 return Http (`https://restapi.amap.com/v3/ip?key=${key}`)
}
function getGeoJSON(){
  return Http(`https://geo.datav.aliyun.com/areas_v3/bound/${adcode}.json`)
}

export {getLocation,getGeoJSON}